<?php  
class ControllerCommonFooter extends Controller {
	protected function index() {
		$this->language->load('common/footer');
		
		$this->data['text_powered_by'] = sprintf($this->language->get('text_powered_by'), $this->config->get('config_store'), date('Y', time()));
		
		$this->data['text_home'] = $this->language->get('text_home');
		$this->data['text_special'] = $this->language->get('text_special');
    	$this->data['text_account'] = $this->language->get('text_account');
    	$this->data['text_login'] = $this->language->get('text_login');
    	$this->data['text_logout'] = $this->language->get('text_logout');
    	$this->data['text_cart'] = $this->language->get('text_cart'); 
    	$this->data['text_checkout'] = $this->language->get('text_checkout');

		$this->data['home'] = $this->HTTP_SERVER . 'common/home';
		$this->data['special'] = $this->HTTP_SERVER . 'product/special';
    	$this->data['account'] = $this->HTTP_SERVER . 'account/account';
		$this->data['logged'] = $this->customer->isLogged();
		$this->data['login'] = $this->HTTP_SERVER . 'account/login';
		$this->data['logout'] = $this->HTTP_SERVER . 'account/logout';
    	$this->data['cart'] = $this->HTTP_SERVER . 'checkout/cart';
		$this->data['checkout'] = $this->HTTP_SERVER . 'checkout/shipping';
		
		$this->id = 'footer';

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/footer.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/common/footer.tpl';
		} else {
			$this->template = 'default/template/common/footer.tpl';
		}
		
		if ($this->config->get('google_analytics_status')) {
			$this->data['google_analytics'] = $this->config->get('google_analytics_code');
		} else {
			$this->data['google_analytics'] = '';
		}
		
		$this->render();
	}
}
?>